<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/security/tags" prefix="security" %>
<!-- 添加保存的按钮 -->
<c:set var="ADD_SAVE_BUTTON" value="${CODE_AUTH.auth_save_button}"></c:set>
<!-- 是否有添加保存的权限 -->						
<security:authorize var="HAS_AUTH_ADD_SAVE" access="${ADD_SAVE_BUTTON.SPEL}"></security:authorize>	
<div id="addModal" class="modal fade" tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">尚筹网系统弹窗</h4>
      </div>
      <div class="modal-body">
        <form>
			<div class="form-group has-success has-feedback">
				<input
					name="name" 
					type="text" class="form-control" autofocus="autofocus"
					placeholder="请输入权限名称">
			</div>
			<div class="form-group has-success has-feedback">
				<input
					name="code" 
					type="text" class="form-control"
					placeholder="请输入权限代码">
			</div>
			<div class="form-group has-success has-feedback">
				<input
					name="orderNum" 
					type="number" class="form-control"
					placeholder="请输入权限排序号">
			</div>
			<div class="has-success has-feedback">
				<label class="radio-inline">
				  <input name="type" type="radio" value="菜单" checked="checked"> 菜单
				</label>
				<label class="radio-inline">
				  <input name="type" type="radio" value="按钮"> 按钮
				</label>
				<label class="radio-inline">
				  <input name="type" type="radio" value="数据"> 数据
				</label>
				<label class="radio-inline">
				  <input name="type" type="radio" value="页面"> 页面
				</label>
				<label class="radio-inline">
				  <input name="type" type="radio" value="文件"> 文件
				</label>
				<label class="radio-inline">
				  <input name="type" type="radio" value="其他"> 其他
				</label>
			</div>
		</form>
      </div>
      <div class="modal-footer">
        <security:authorize access="${HAS_AUTH_ADD_SAVE }">
        	<button id="saveBtn" type="button" 
        		class="${ADD_SAVE_BUTTON.BUTTON_CLASS }">
        		<i class="${ADD_SAVE_BUTTON.ICON_CLASS}"></i> 保存
       		</button>
        </security:authorize>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->